Post

Replies

Boosts

Views

Activity

Migrating from CoreData to SwiftData causes crashes on Watch app
I'm working on migrating my app from using CoreData to SwiftData. The swift data code generated by Xcode works correctly for the iOS and Mac Catalyst targets but it is causing a crash for the WatchOS target. It gives me this message **Fatal error: Application must register a ValueTransformer for NSSecureUnarchiveFromDataTransformer ** This attribute is the only one with a .transformable option. @Attribute(.transformable(by: "NSSecureUnarchiveFromDataTransformer")) public var linkedEntities: [UUID] = [] Changing the string NSSecureUnarchiveFromDataTransformer to NSValueTransformerName.secureUnarchiveFromDataTransformerName.rawValue causes a generic crash with no error message. The app has CloudKit integration as well (not sure if relevant). Does anyone have a similar issue and can help me on what to do here?
2
0
838
Oct ’23
Save data from to app from quicklook extensions
I have an iOS app with custom file formats and a quicklook extension. I want to be able to save the file into the app without the need to "share" the file with the main app. I tried both using core data and user defaults, with the app group configured ofc, and for both I get errors about need write access. Is there any way around this or is it impossible to have a "save" feature on quicklook?
0
1
634
Mar ’21